gtk: Fix some g-i annotations warnings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 18 Mar 2018 20:47:10 +0000 (21:47 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 18 Mar 2018 20:47:10 +0000 (21:47 +0100)
gtk/gtkmediacontrols.c
gtk/gtkmediafile.c
gtk/gtkmediastream.c
gtk/gtkvideo.c

index 1f299bd2f23c159c568624f53451ddf6a2b680b7..a55475e6620ba5ffc8bbd0ad0169a6d20842c68a 100644 (file)
@@ -320,7 +320,7 @@ gtk_media_controls_new (GtkMediaStream *stream)
  *
  * Gets the media stream managed by @controls or %NULL if none.
  *
- * Returns: (nullable): The media stream managed by @controls
+ * Returns: (nullable) (transfer none): The media stream managed by @controls
  **/
 GtkMediaStream *
 gtk_media_controls_get_media_stream (GtkMediaControls *controls)
index e3b0e6275622fa42c136503b2ebe9850a12b8333..7c3f30f929d5ff430e474af3fb93fc56e7fc8f06 100644 (file)
@@ -511,7 +511,7 @@ gtk_media_file_set_file (GtkMediaFile *self,
  * When @self is not playing or not playing from a file,
  * %NULL is returned.
  *
- * Returns: (nullable): The currently playing file or %NULL if not
+ * Returns: (nullable) (transfer none): The currently playing file or %NULL if not
  *     playing from a file.
  **/
 GFile *
@@ -571,7 +571,7 @@ gtk_media_file_set_input_stream (GtkMediaFile *self,
  * When @self is not playing or not playing from a stream,
  * %NULL is returned.
  *
- * Returns: (nullable): The currently playing stream or %NULL if not
+ * Returns: (nullable) (transfer none): The currently playing stream or %NULL if not
  *     playing from a stream.
  **/
 GInputStream *
index 0688ed199c6b0eeb445c91c6734adf4b9d5092c9..6c03939ab6f5f34a13774065fa531345aa2952b9 100644 (file)
@@ -1108,7 +1108,7 @@ gtk_media_stream_error (GtkMediaStream *self,
 }
 
 /**
- * gtk_media_stream_error:
+ * gtk_media_stream_error_valist:
  * @self: a #GtkMediaStream
  * @domain: error domain
  * @code: error code
index 755acdde9843b37765dd5215ee0c4441270480f2..b6c1edd690be301b421d4af203df5f836e7367ae 100644 (file)
@@ -366,7 +366,7 @@ gtk_video_new_for_filename (const char *filename)
 
 /**
  * gtk_video_new_for_resource:
- * @filename: (allow-none): resource path to play back
+ * @resource_path: (allow-none): resource path to play back
  *
  * Creates a #GtkVideo to play back the resource at the
  * given @resource_path.
@@ -412,7 +412,7 @@ gtk_video_new_for_resource (const char *resource_path)
  *
  * Gets the media stream managed by @self or %NULL if none.
  *
- * Returns: (nullable): The media stream managed by @self
+ * Returns: (nullable) (transfer none): The media stream managed by @self
  **/
 GtkMediaStream *
 gtk_video_get_media_stream (GtkVideo *self)
@@ -582,7 +582,7 @@ gtk_video_set_file (GtkVideo *self,
 }
 
 /**
- * gtk_video_set_resource:
+ * gtk_video_set_filename:
  * @self: a #GtkVideo
  * @filename: (allow-none): the filename to play
  *